﻿namespace YDT_PaymentService.Applictions.DTOs
{
    /// <summary>
    /// 支付数据传输对象 - 用于API返回
    /// </summary>
    public class PaymentDto
    {
        public Guid Id { get; set; }
        /// <summary>支付金额</summary>
        public decimal PaymentPrice { get; set; }
        /// <summary>支付状态</summary>
        public string PaymentStatus { get; set; } = string.Empty;
        /// <summary>订单ID</summary>
        public Guid OrderId { get; set; }
        /// <summary>支付类型</summary>
        public string PaymentType { get; set; } = string.Empty;
        /// <summary>支付方式</summary>
        public string PaymentMethod { get; set; } = string.Empty;
        /// <summary>支付创建时间</summary>
        public DateTime CreateTime { get; set; }
        /// <summary>支付更新时间</summary>
        public DateTime UpdateTime { get; set; }
        /// <summary>支付备注</summary>
        public string PaymentRemark { get; set; } = string.Empty;
        /// <summary>支付URL</summary>
        public string PaymentUrl { get; set; } = string.Empty;
        /// <summary>支付回调URL</summary>
        public string PaymentReturnUrl { get; set; } = string.Empty;
        /// <summary>支付单号</summary>
        public string PaymentCode { get; set; } = string.Empty;
        /// <summary>用户ID</summary>
        public Guid UserId { get; set; }
        /// <summary>支付错误编号</summary>
        public string PaymentErrorNo { get; set; } = string.Empty;
        /// <summary>支付错误信息</summary>
        public string PaymentErrorInfo { get; set; } = string.Empty;
        /// <summary>支付完成时间</summary>
        public DateTime? PaymentTime { get; set; }
    }
}
